package com.java.action;

import java.util.List;

import com.java.pojo.ComDept;
import com.java.pojo.ComEmp;
import com.java.pojo.ComRoom;
import com.java.service.IRoomService;

public class ShowNewRoomAction {
	public List<ComEmp> empList;
	public List<ComDept> deptList;
	public IRoomService roomService;
	public ComRoom room;
	public String msg;
	public String execute(){
		empList = roomService.getEmpList();
		deptList = roomService.getDeptList();
		return "success";
	}
	public List<ComEmp> getEmpList() {
		return empList;
	}
	public void setEmpList(List<ComEmp> empList) {
		this.empList = empList;
	}
	public List<ComDept> getDeptList() {
		return deptList;
	}
	public void setDeptList(List<ComDept> deptList) {
		this.deptList = deptList;
	}
	public IRoomService getRoomService() {
		return roomService;
	}
	public void setRoomService(IRoomService roomService) {
		this.roomService = roomService;
	}
	public ComRoom getRoom() {
		return room;
	}
	public void setRoom(ComRoom room) {
		this.room = room;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
}
